package adminhandler

import (
	"context"
	adminpb "github.com/ikaiguang/srv_admin/api/admin"
	"google.golang.org/grpc/codes"
	"google.golang.org/grpc/status"
)

// var
var (
	// AdminHandler handler
	AdminHandler adminpb.CkgAdminServer = &admin{}
)

// admin handler
type admin struct{ adminpb.UnimplementedCkgAdminServer }

// Login .
func (s *admin) Login(ctx context.Context, in *adminpb.AdminLoginReq) (out *adminpb.AdminLoginResp, err error) {
	return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
}

// Logout .
func (s *admin) Logout(ctx context.Context, in *adminpb.AdminLogoutReq) (out *adminpb.AdminLogoutResp, err error) {
	return nil, status.Errorf(codes.Unimplemented, "method Logout not implemented")
}

// RefreshToken .
func (s *admin) RefreshToken(ctx context.Context, in *adminpb.AdminRefreshTokenReq) (out *adminpb.AdminLoginResp, err error) {
	return nil, status.Errorf(codes.Unimplemented, "method RefreshToken not implemented")
}

// validateLoginParam .
func (s *admin) validateLoginParam(ctx context.Context, in *adminpb.AdminLoginReq) (err error) {

	return
}
